<a class="menu-toggler" id="menu-toggler" href="#">
    <span class="menu-text"></span>
</a>

<div class="sidebar" id="sidebar">
    <ul class="nav nav-list">

    <#if sessionUser.type == 'admin'>
        <li>
            <a href="#" class="dropdown-toggle">
                <i class="icon-double-angle-right"></i>系统管理
                <b class="arrow icon-angle-down"></b>
            </a>

            <ul class="submenu">
                <li class="userList">
                    <a href="/user/list"><i class="icon-user"></i>用户管理</a>
                </li>
            </ul>
        </li>

        <li>
            <a href="#" class="dropdown-toggle">
                <i class="icon-double-angle-right"></i>健康档案管理
                <b class="arrow icon-angle-down"></b>
            </a>

            <ul class="submenu">
                <li class="pList">
                    <a href="/personal/list"><i class="icon-book"></i>个人档案</a>
                </li>
                <li class="lList">
                    <a href="/life/list"><i class="icon-book"></i>生活档案</a>
                </li>
                <li class="tList">
                    <a href="/info/list"><i class="icon-book"></i>体检档案</a>
                </li>
            </ul>
        </li>

        <li>
            <a href="#" class="dropdown-toggle">
                <i class="icon-double-angle-right"></i>健康档案查询
                <b class="arrow icon-angle-down"></b>
            </a>

            <ul class="submenu">

                <li>
                    <a href="#" class="dropdown-toggle">可视化数据查看<b class="arrow icon-angle-down"></b></a>
                    <ul class="submenu">
                        <li class="tu">
                            <a href="/tu"><i class="icon-book"></i>整体数据可视化查看</a>
                        </li>
                    </ul>
                </li>
            </ul>
        </li>
    <#elseif sessionUser.type == 'user'>
    <li>
        <a href="#" class="dropdown-toggle">
            <i class="icon-double-angle-right"></i>健康档案管理
            <b class="arrow icon-angle-down"></b>
        </a>

        <ul class="submenu">
            <li class="pd">
                <a href="/personal/detail/0"><i class="icon-book"></i>个人档案</a>
            </li>
            <li class="ld">
                <a href="/life/detail/0"><i class="icon-book"></i>生活档案</a>
            </li>
            <li class="tList">
                <a href="/info/list"><i class="icon-book"></i>体检档案</a>
            </li>
        </ul>
    </li>
      <li>
          <a href="/info"><i class="icon-user"></i>个人信息</a>
      </li>
     <li>
         <a href="/info/add"><i class="icon-book"></i>录入信息</a>
     </li>
    <#else>
    <li>
        <a href="#" class="dropdown-toggle">
            <i class="icon-double-angle-right"></i>健康档案查询
            <b class="arrow icon-angle-down"></b>
        </a>

        <ul class="submenu">
            <li class="mul">
                <a href="/user/myList"><i class="icon-book"></i>个人用户数据查询</a>
            </li>
            <li class="pList">
                <a href="/personal/list"><i class="icon-book"></i>个人档案</a>
            </li>
            <li class="lList">
                <a href="/life/list"><i class="icon-book"></i>生活档案</a>
            </li>
            <li>
                <a href="#" class="dropdown-toggle">可视化数据查看<b class="arrow icon-angle-down"></b></a>
                <ul class="submenu">
                    <li class="tList">
                        <a href="/info/list"><i class="icon-book"></i>个人数据可视化查看</a>
                    </li>

                    <li class="tu">
                        <a href="/tu"><i class="icon-book"></i>整体数据可视化查看</a>
                    </li>

                </ul>
            </li>
        </ul>
    </li>



      <li>
          <a href="/info"><i class="icon-user"></i>个人信息</a>
      </li>
    </#if>

    <#if sessionUser.type != 'admin'>
    <li>
        <a href="#" class="dropdown-toggle">
            <i class="icon-double-angle-right"></i>医患消息
            <b class="arrow icon-angle-down"></b>
        </a>

        <ul class="submenu">
            <li class="ml">
                <a href="/message/list"><i class="icon-list"></i>我的消息</a>
            </li>
        </ul>
    </li>

     <li>
         <a href="#" class="dropdown-toggle">
             <i class="icon-double-angle-right"></i>健康风险预警
             <b class="arrow icon-angle-down"></b>
         </a>

         <ul class="submenu">
             <li class="ilt">
                 <a href="/info/listT"><i class="icon-list"></i>特点疾病分险及建议</a>
             </li>
         </ul>
     </li>
    </#if>

    </ul><!-- /.nav-list -->

    <div class="sidebar-collapse" id="sidebar-collapse">
        <i class="icon-double-angle-left" data-icon1="icon-double-angle-left"
           data-icon2="icon-double-angle-right"></i>
    </div>
</div>
